php exec debugging no stdout and stderr output

try this

exec('some_unkown_command 2>&1', $output);
print_r($output);

Leave a Reply